package com.cy.teducommunitys.com.common.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cy.teducommunitys.com.cy.entity.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author :mdzz
 * @description :用于后台管理显示的用户数据,其中包含了中心、班级、角色的名字
 * @date :2019/7/19 13:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserForManagerVo extends User implements Serializable {
    private static final long serialVersionUID = 9196073673160830148L;
    @TableId("userId")
    private Integer userId;

    @TableField("userName")
    private String userName;

    private String password;

    private String salt;

    private Integer valid;

    @TableField("nickName")
    private String nickName;

    @TableField("headPhoto")
    private String headPhoto;

    private String email;

    private String mobile;

    private LocalDate birth;

    private String gender;

    private String hobby;

    private String city;

    private String address;

    @TableField("centerId")
    private Integer centerId;

    private String centerName;

    @TableField("classId")
    private Integer classId;

    private String className;

    @TableField("roleId")
    private Integer roleId;

    private String roleName;

    private String grade;

    private Integer score;

    @TableField("createdTime")
    private Date createdTime;

    @TableField("modifiedTime")
    private Date modifiedTime;

    @TableField("createdUser")
    private String createdUser;

    @TableField("modifiedUser")
    private String modifiedUser;
}
